package com.zyl.shiro.service.impl;

import com.zyl.shiro.mapper.UserMapper;
import com.zyl.shiro.pojo.User;
import com.zyl.shiro.service.UserService;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User queryUserByName(String name) {
        return userMapper.queryUserByName(name);
    }
}
